home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / models / items / binoculars.tik next >
Encoding:
Text File  |  2002-10-21  |  852 b   |  56 lines

  1. TIKI
  2. setup
  3. {
  4.     scale 0.52            // Set default scale to 16/30.5 since world is in 16 units per foot and model is in cm's
  5.     path models/items/binoculars
  6.     skelmodel binoculars.skd
  7.     surface binoculars shader binoculars
  8. }
  9.  
  10. init
  11. {
  12.     server
  13.     {
  14.         setsize    "-4 -4 0" "4 4 4"
  15.         classname InventoryItem
  16.         name "Binoculars"
  17.         rank 1 1
  18. //        mainattachtotag "eyes bone"
  19.         firetype clickitem
  20.         semiauto
  21.         ammorequired 0        // unlimited usage
  22.         usenoammo 1
  23.         firedelay 0.75        // delay between uses
  24.         bulletrange 8000
  25.         crosshair 0
  26.         zoom 20 1
  27.     }
  28.     client
  29.     {
  30.     }
  31. }
  32.  
  33. animations
  34. {
  35.     idle    binoculars.skc
  36.     {
  37.         server
  38.         {
  39.             first surface all +nodraw
  40.         }
  41.     }
  42.     fire    binoculars.skc
  43.     {
  44.         server
  45.         {
  46.             entry activateitem
  47.         }
  48.         client
  49.         {
  50.             entry sound snd_binoculars
  51.         }
  52.     }
  53. }
  54.  
  55. /*QUAKED item_binoculars (0.5 0.5 1.0) (-8 -8 0) (8 8 8)
  56. */